package com.ugoodtech.mdcc.web.service;

/* Copyright (C) Ugoodtech, Inc - All Rights Reserved.
 * Unauthorized copying of this file, via any medium is strictly prohibited.
 * Proprietary and confidential.
 * Written by Stone Shaw.
 */

import com.ugoodtech.mdcc.core.domain.QuestionAnswerOption;
import io.swagger.annotations.ApiParam;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface QuestionAnswerOptionService {

    Page<QuestionAnswerOption> queryOption(Long questionId, Pageable pageable);

    QuestionAnswerOption createAnswer(@ApiParam("问题Id")  Long questionId,
                                      @ApiParam("选项文字")  String text,
                                      @ApiParam("允许填空")  boolean addText,
                                      @ApiParam("结果文字")  String resultText,
                                      @ApiParam("建议文字")  String suggestText);
}


